banded_to_csr Function

public function banded_to_csr(m, ml, mu, a, err) result(rst)

Converts a banded matrix to a CSR matrix.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: m

The number of rows in the banded matrix.

integer(kind=int32), intent(in) :: ml

The number of lower diagonals in the banded matrix.

integer(kind=int32), intent(in) :: mu

The number of upper diagonals in the banded matrix.

real(kind=real64), intent(in), dimension(:,:) :: a

The banded matrix to convert.

class(errors), intent(inout), optional, target :: err

The error object to be updated.

Return Value type(csr_matrix)

The CSR matrix.